[body]
{path: tpl=_sys/path.htm}
<div class="cms_form">
	<form>
		<div class="error">{error: type=user}</div>

		<div class="label">{msg:frm_gt_name}</div>
		<div class="field"><input type="text" name="gt_name" id="gt_name"></div>
		<br class="sep">

		{new}

	</form>
	<br class="sep">
</div>

[new]
		<div class="label">&nbsp;</div>
		<div class="field">
			<input  type="submit" class="submit" value="{msg:save}">
		</div>

[not_new]

		<div class="label">&nbsp;</div>
		<div class="field">
			<input  type="submit" class="submit" value="{msg:save}">
			<input  type="button" class="delete" value="{msg:delete}" onClick="if(confirm('{msg:confirm}')) document.location='{link}/delete'; return false;">
		</div>


[success]
<div>
	<label>{msg:frm_res_saved}</label>
	<script type="text/javascript">document.location.assign( '{link: link=admin/goods_types/{gt_id}}' );
</script>
</div>

[onDelete]
<div>
	<label>{msg:frm_res_deleted}</label>
	<script type="text/javascript">document.location.assign( '{link: link=admin/goods_types/}' );
	</script>
</div>
